/*
Copyright 2019 The Inspur Authors.

Common means the common phases Can Use In `kubeadm init` `kubeadm join` `kubeadm prepare`
*/

package phases

import (
	"io"

	ckeapi "cke.io/ckectl/app/apis"
)

// InitData is the interface to use for init phases.
// The "initData" type from "cmd/init.go" must satisfy this interface.
type PrepareData interface {
	Cfg()           *ckeapi.CkeConfiguration
	OutputWriter()  io.Writer
}

type CommonWriter interface {
	OutputWriter() io.Writer
}
